#define   osObjectsPublic                                       // define objects in rtxapp module
#include "osObjects.h"                                          // RTOS object definitions

/*----------------------------------------------------------------------------
 *      Thread 1 'Thread_Name': Sample thread
 *---------------------------------------------------------------------------*/

int Init_Thread (void)
{
/*
  tid_ComTask = osThreadCreate (osThread(ComTask), NULL);
  if (!tid_ComTask) return(-1);
	
  tid_ComTtlTask = osThreadCreate (osThread(ComTtlTask), NULL);
  if (!tid_ComTtlTask) return(-1);
    
  tid_LedCtrTask = osThreadCreate (osThread(LedCtrTask), NULL);
  if (!tid_LedCtrTask) return(-1);
    
  tid_TempCtrTask = osThreadCreate (osThread(TempCtrTask), NULL);
  if (!tid_TempCtrTask) return(-1);
  */ 
    
  tid_Modbus = osThreadCreate (osThread(Modbus), NULL);
  if (!tid_Modbus) return(-1);	

  return(0);
}

void Thread (void const *argument)
{

  while (1)
  {
	osDelay(300);
  }
}

void Display (void const *argument)
{

  while (1)
  {
    

	osDelay(1000);
  }
}
